def get_cf_contest(s):
    res = ""
    for c in s:
        if c.isdigit():
            res += c
        else:
            break
    return res